local dudu = fk.CreateSkill{
    name = "jinld__dudu",
    tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
    ["jinld__dudu"] = "毒妒",
    [":jinld__dudu"] = "锁定技，你对其他女性角色造成的伤害+1；手牌数大于你的角色不能响应你使用的牌。",

    ["$jinld__dudu1"] = "好个贱婢，看来留不得你！",
    ["$jinld__dudu2"] = "待本后开膛破肚，一验是子是女！",
}

dudu:addEffect(fk.CardUsing, {
  mute = true,
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(dudu.name) and
      (data.card.trueName == "slash" or data.card:isCommonTrick()) and
      table.find(player.room:getOtherPlayers(player, false), function(p)
        return p:getHandcardNum() > player:getHandcardNum()
      end)
  end,
  on_use = function(self, event, target, player, data)
    local targets = table.filter(player.room:getOtherPlayers(player, false), function(p)
      return p:getHandcardNum() > player:getHandcardNum()
    end)
    if #targets > 0 then
      player.room:notifySkillInvoked(player, dudu.name, "offensive")
      player:broadcastSkillInvoke(dudu.name)
      data.disresponsiveList = data.disresponsiveList or {}
      for _, p in ipairs(targets) do
        table.insertIfNeed(data.disresponsiveList, p)
      end
    end
  end,
})

dudu:addEffect(fk.DamageCaused,{
  anim_type = "offensive",
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(dudu.name) and data.to:isFemale() and data.to ~= player
  end,
  on_use = function (self, event, target, player, data)
    data:changeDamage(1)
  end,
})

return dudu